package cn.tedu.oa.sys.entity;

import cn.tedu.oa.common.entity.BaseEntity;

/**
 * 菜单
 */
public class Menu extends BaseEntity{
	private String  name;   	  /*资源名称*/
	private Integer parentId; 	  /*父菜单ID，一级菜单为0*/
	private String  permission;   /*授权(如：user:create)*/
	private String  url;   		  /*资源url*/
	private String  note; 		  /*备注*/
	private Integer type;         /*类型     0：菜单   1：按钮*/
    private String  typeName;     /*类型     根据type判断得到*/
	private Integer sort;         /*排序*/
	private String  lay_icon_open="/lib/static/common/img/1_open.png";  /*父节点图标地址*/
	private String  lay_icon_close="/lib/static/common/img/1_close.png";/*父节点图标地址*/

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setLay_icon_open(String lay_icon_open) {
        this.lay_icon_open = lay_icon_open;
    }

    public void setLay_icon_close(String lay_icon_close) {
        this.lay_icon_close = lay_icon_close;
    }

    public String getLay_icon_close() { return lay_icon_close; }

    public String getLay_icon_open() { return lay_icon_open; }

    public String getName() {
		return name;
	}

	public void setName(String name) { this.name = name; }

	public Integer getParentId() { return parentId; }

	public void setParentId(Integer parentId) { this.parentId = parentId; }

	public String getPermission() { return permission; }

	public void setPermission(String permission) { this.permission = permission; }

	public String getUrl() { return url; }

	public void setUrl(String url) { this.url = url; }

	public String getNote() { return note; }

	public void setNote(String note) { this.note = note; }

	public Integer getType() { return type; }

	public void setType(Integer type) { this.type = type; }

	public Integer getSort() { return sort; }

	public void setSort(Integer sort) { this.sort = sort; }


	public Menu() { }

	@Override
	public String toString() {
		return "Menu [name=" + name + ", url=" + url + ", type=" + type + ", sort=" + sort + ", note=" + note
				+ ", parentId=" + parentId + ", permission=" + permission + "]";
	}


}
